Skip to content

查询门店主体匹配结果

查询门店主体匹配结果。该接口允许服务商查询之前发起的门店主体匹配批次结果,包括各门店统一社会信用代码是否存在满足条件的微信支付商户号。通过此接口可获取匹配结果详情,确认哪些门店可以使用企业支付功能。

请求参数类型描述
batch_idstring微信支付主体匹配批次单号
queryobject声明请求的查询参数
sp_mchidstring服务商商户号
php
$instance->v3->webizpay->stores->entityMatches->_batch_id_->getAsync([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/webizpay/stores/entity-matches/{batch_id}')->getAsync([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/webizpay/stores/entity-matches/{batch_id}']->getAsync([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->webizpay->stores->entityMatches->_batch_id_->get([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/webizpay/stores/entity-matches/{batch_id}')->get([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/webizpay/stores/entity-matches/{batch_id}']->get([
  'batch_id' => '1030000071201xxxxx',
  'query' => [
    'sp_mchid' => '12341234',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
out_batch_idstring商户主体匹配批次单号
batch_idstring微信支付主体匹配批次单号
statestring批次状态
ACCEPTED | IN_PROGRESS | COMPLETED | CLOSED 枚举值之一
match_resultsobject[]主体匹配明细列表
organization_codestring门店统一社会信用代码
store_namestring门店名称
has_valid_mchidboolean是否存在满足条件微信支付商户号

参阅 官方文档

Published on the GitHub by TheNorthMemory